package com.chtw.vuedemo.bean;

import com.fasterxml.jackson.annotation.JsonProperty;
import lombok.Data;
import org.bson.types.ObjectId;
import org.springframework.data.annotation.Id;
import org.springframework.data.mongodb.core.mapping.Document;
import org.springframework.data.mongodb.core.mapping.Field;

/**
 * @author chtw
 * @date 2020-10-04 20:08
 */
@Document("photo_menu")
@Data
public class PhotoMenu {

    @Id
    @Field("_id")
    private ObjectId id;

    @JsonProperty("menu_id")
    @Field("menu_id")
    private int menuId;

    private String title;
}
